package it.win4buy.utility
{

    /**
     *
     *	autore:
     *  pierangelo.mancusi@gmail.com
     *
     */

    public class ApplicationConstants
    {



        //-------------------------------------------
        //
        // Public const
        //
        //-------------------------------------------



        /**
         * Application setted in <b>PlaceHolder Selection</b> mode.
         */
        public static const APPLICATION_STATE_PLACEHOLDER:int=0;

        /**
         * Application setted in <b>PLAY</b> mode.
         */
        public static const APPLICATION_STATE_PLAY:int=1;



        /**
         * Polling Interval for PLaceHolderList from the Server.
         *
         */
        public static const POLLING_GET_PLACEHOLDER_INTERVAL:int=5000;

        //-------------------------------------------
        //
        // ApplicationContainer's States
        //
        // @see AplicationContainer.mxml 
        //-------------------------------------------

        public static const VIEW_AC_PLACEHOLDER:String="placeHolderView";

        public static const VIEW_AC_PLAY:String="playView";

        public static const VIEW_AC_ALERT:String="alertView";



        //-------------------------------------------
        //
        // PlaceHolder's States
        //
        // @see PlaceHolderView.mxml 
        //-------------------------------------------

        /*
        <s:states>
            <s:State name="main"/>
            <s:State name="alert"
                     basedOn="main"/>
            <s:State name="deregister"
                     basedOn="main"/>
        </s:states>

        */
        public static const VIEW_PLACEHOLDER_MAIN:String="main";

        public static const VIEW_PLACEHOLDER_ALERT:String="alert";

        public static const VIEW_PLACEHOLDER_DEREGISTER:String="deregister";

        //-------------------------------------------
        //
        // Play's States
        //
        // @see PlayView.mxml 
        //-------------------------------------------

        public static const VIEW_PLAY_MAIN:String="main";

        public static const VIEW_PLAY_ALERT:String="alert";




        //-------------------------------------------
        //
        // Remote Object's Destinations 
        // 
        // @see SpringFlex-Servlet.xml
        //
        //-------------------------------------------

        /**
         * Remote Object Destination Test
         */
        public static const DESTINATION_TEST:String="testDestination";

        /**
         * Remote Object Destination
         */
        public static const DESTINATION:String="flashDestination";


        //-------------------------------------------
        //
        // AlertCOmponent View
        // 
        // @see AlertComponentPM.xml
        //
        //-------------------------------------------


        public static const ALERT_COMPONENT_LOADING:String="LOADING";

        public static const ALERT_COMPONENT_INITIALIZING:String="INITIALIZING";

        public static const ALERT_COMPONENT_RETRIEVE_USERDATA:String="RETRIEVE_USERDATA";

        public static const ALERT_COMPONENT_RETRIEVE_PLACEHOLDER_LIST:String="RETRIEVE_PLACEHOLDER_LIST";







        //-------------------------------------------
        //
        // Constructor
        //
        //-------------------------------------------

        public function ApplicationConstants()
        {
        }

    }
}